#pragma once

#include <windows.h>
#include <commdlg.h>
#include <streams.h>
#include <initguid.h>

class SenderInputPin : public CRenderedInputPin
{
private:
	CCritSec * const m_pReceiveLock;
public:
    SenderInputPin(
                  CBaseFilter *pFilter,
                  CCritSec *pLock,
                  CCritSec *pReceiveLock,
                  HRESULT *phr);

	~SenderInputPin(void);

    STDMETHODIMP Receive(IMediaSample *pSample);
    STDMETHODIMP EndOfStream(void);
    STDMETHODIMP ReceiveCanBlock();
	HRESULT CheckMediaType(const CMediaType *);
};

